﻿namespace Zhongy
{
    public class TransCode
    {
        public const int Net = 2001;
        public const int Game = 2002;
    }

    public class NetEvtCode
    {
        /// <summary> 单点 </summary>
        public const int Client2TcpMsg = 1901;
        /// <summary> 广播 </summary>
        public const int Clients2TcpMsgs = 1902;
    }

    /// <summary>
    /// gamestop 本与gameconnect是同一种状态，但在某些情况下，
    /// game控制状态和client控制状态的区别，容易交错误会，故单独分离出来gamestop
    /// </summary>
    public class GameEvtCode
    {
        /// <summary> 与client未连接，游戏等待</summary>
        public const int GameDisconnect = 0;
        /// <summary> 与client连接后，游戏准备</summary>
        public const int GameConnect = 1;
        /// <summary> 与client连接后，游戏开始</summary>
        /// <summary> 与client连接后，暂停继续 </summary>
        public const int GameStart = 2;
        /// <summary> 与client连接后，游戏暂停</summary>
        public const int GamePuase = 3;

        /// <summary> 与client连接后，游戏结束 </summary>
        public const int GameStop = 4;

    }
}
